/************************************************************************

								Heroes IV
					  Copyright 2000, The 3DO Company

	------------------------------------------------------------------
  						       gateway.h

	$Header: /game/gateway.h $

	$NoKeywords: $

 ************************************************************************/

#if !defined( GATEWAY_H_INCLUDED )
#define GATEWAY_H_INCLUDED

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "gateway_base.h"

// --------------------------------------------------------------------------
// t_gateway class
// --------------------------------------------------------------------------

class t_gateway : public t_gateway_base
{
public:
	// Constructor
	t_gateway( std::string const& model_name );
	virtual	void	destroy();
	int				get_gateway_type() const;
	virtual void    activate_trigger( t_army* army, t_adv_map_point const& point, 
		                                   t_direction direction, t_adventure_frame* frame );
	virtual void	pathing_destination_query( t_adventure_path_point const& source,
											   t_adventure_path_finder & path_finder ) const;
	virtual void	place( t_adventure_map &map, t_adv_map_point const&	point );
};

// "Color" of gateway. Gateways only go to other gateways of the same type
inline int t_gateway::get_gateway_type() const
{
	return get_major_subtype();
}

#endif // !defined( GATEWAY_H_INCLUDED )
